package com.example.administrator.myjdlc.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by Administrator on 2017/4/27.
 */

public abstract class BaseFragment extends Fragment {
    public View view;

    public BaseFragment() {
    }

    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        this.view = this.initView(inflater);
        this.initListener();
        return this.view;
    }

    public void onActivityCreated(Bundle savedInstanceState) {
        this.initData(savedInstanceState);
        super.onActivityCreated(savedInstanceState);
    }

    public abstract View initView(LayoutInflater var1);

    public abstract void initListener();

    public abstract void initData(Bundle var1);
}

